<template>
    <a-row class="iconContainer" @click="backHome">
      <a-col :span="8" @click="backHome">
        <div class="iconImgWrapper">
          <img class="iconImg" src="@/assets/icon.png" height="90%" width="90%"/>
        </div>
      </a-col>
      <a-col class="titleWrapper" :span="16" @click="backHome">
        <div class="title">网易云音乐</div>
      </a-col>
    </a-row>
</template>

<script>
export default {
  name: "Icon",
  methods:{
    backHome(){
      this.$router.push('/findMusic')
    }
  }
}
</script>

<style scoped>
  .iconContainer{
    width: 100%;
    height: 2.4rem;
    padding: 0.1rem 0;
    cursor: pointer;
  }
  .iconImgWrapper{
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background-color: white;
    padding: 0.2rem;
    float: right;
  }
  .iconImg{

  }
  .titleWrapper{
    height: 2.1rem;
    padding: 0.2rem 0;
  }
  .title{
    width: 100%;
    height: 2.1rem;
    color: white;
    font-family: 黑体;
    font-size: 16px;
    line-height: 1.5rem;
  }
</style>
